<!--
 * @Author: your name
 * @Date: 2021-11-30 11:04:50
 * @LastEditTime: 2021-11-30 21:12:08
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: /carbon/src/components/List.vue
-->
<template>
  <div class="list-container">
    <div class="list-top-container">
      <div class="list-top-container-left">
        <h1>在 Bitcoin.com 交易所跟踪市场和交易</h1>
        <p>跟踪您最喜欢的硬币并探索 Bitcoin.com Exchange 上的新列表</p>
      </div>
      <div class="list-top-container-right">
        <button class="btn1"><span>交换</span></button>
        <button class="btn2"><span>市场交易 -></span></button>
      </div>
    </div>
    <div class="list-bottom-container">
      <div class="list-bottom-container-item">
        <div class="box">
          <i class="el-icon-setting icon-1"></i>
          <div class="box_h3p">
            <h3 class="t_h3">比特币</h3>
            <p class="t_p">比特币</p>
          </div>
        </div>
        <div class="echarts_box"><EchartsItem main="main1" /></div>
      </div>
      <div class="list-bottom-container-item">
        <div class="box">
          <i class="el-icon-star-off icon-2"></i>
          <div class="box_h3p">
            <h3 class="t_h3">比特币现金</h3>
            <p class="t_p">比特币现金</p>
          </div>
        </div>
        <div class="echarts_box"><EchartsItem main="main2" /></div>
      </div>
      <div class="list-bottom-container-item">
        <div class="box">
          <i class="el-icon-s-help icon-3"></i>
          <div class="box_h3p">
            <h3 class="t_h3">以太坊</h3>
            <p class="t_p">以太坊</p>
          </div>
        </div>
        <div class="echarts_box"><EchartsItem main="main3" /></div>
      </div>
      <div class="list-bottom-container-item">
        <div class="box">
          <i class="el-icon-message-solid icon-4"></i>
          <div class="box_h3p">
            <h3 class="t_h3">瑞波币</h3>
            <p class="t_p">瑞波币</p>
          </div>
        </div>
        <div class="echarts_box"><EchartsItem main="main4" /></div>
      </div>
    </div>
  </div>
</template>

<script>
import EchartsItem from "./EchartsItem.vue";
export default {
  components: {
    EchartsItem,
  },
};
</script>

<style scoped lang="less">
.list-container {
  .list-top-container,
  .list-bottom-container {
    display: flex;
    justify-content: space-between;
    flex-flow: wrap;
    padding: 50px 200px;
  }
  .list-top-container-right {
    display: flex;
    align-items: self-end;
    & > button {
      margin: 0 10px;
    }
  }
  .list-top-container-left {
    margin: 0px;
    padding: 0px 0px px 16px;
    letter-spacing: 0px;
    margin-block: 0px;
    margin-inline: 0px;
    color: rgb(45, 50, 59);
    font-size: 26px;
    line-height: 32px;
    font-weight: 700;
    h1 {
      font-size: 32px;
      width: 340px;
      line-height: 40px;
      padding-bottom: 16px;
    }
    p {
      font-size: 20px;
      line-height: 40px;
      color: rgb(91, 102, 124);
    }
  }
  .list-top-container-right .btn1 {
    position: relative;
    display: inline-flex;
    box-sizing: border-box;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 300ms ease 0s;
    width: 100%;
    height: 52px;
    font-size: 20px;
    line-height: 22px;
    padding: 17px 38px;
    color: rgb(45, 50, 59);
    background-image: linear-gradient(
      rgb(255, 255, 255) 3.35%,
      rgba(255, 255, 255, 0.73) 100%
    );
    box-shadow: 0 3px 4px rgb(143, 139, 139);
    span {
      display: inline-flex;
      letter-spacing: 0px;
      text-shadow: rgb(0 0 0 / 10%) 0px 1px 1px;
      text-align: center;
      -webkit-box-pack: center;
      justify-content: center;
      -webkit-box-align: center;
      align-items: center;
      font-weight: 700;
      white-space: nowrap;
    }
  }
  .list-top-container-right .btn2 {
    position: relative;
    display: inline-flex;
    box-sizing: border-box;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 300ms ease 0s;
    width: 100%;
    height: 52px;
    font-size: 20px;
    line-height: 22px;
    padding: 17px 38px;
    color: rgb(255, 255, 255);
    background-color: rgb(39, 147, 255);
    box-shadow: 0 3px 4px rgb(143, 139, 139);
    span {
      display: inline-flex;
      letter-spacing: 0px;
      text-shadow: rgb(0 0 0 / 10%) 0px 1px 1px;
      text-align: center;
      -webkit-box-pack: center;
      justify-content: center;
      -webkit-box-align: center;
      align-items: center;
      font-weight: 700;
      white-space: nowrap;
    }
  }
  .list-bottom-container {
    display: flex;
    justify-content: space-between;

    .list-bottom-container-item {
      .icon-1 {
        color: rgb(245, 135, 9);
      }
      .icon-2 {
        color: rgb(0, 255, 85);
      }
      .icon-3 {
        color: rgb(51, 49, 46);
      }
      .icon-4 {
        color: rgb(51, 49, 46);
      }

      padding: 20px;
      width: 23%;
      height: 300px;
      background: rgb(255, 255, 255);
      box-sizing: border-box;
      border-radius: 10px;
      box-shadow: 1px 1px 5px rgb(182, 182, 182);
      .box {
        display: flex;
      }
      .t_h3 {
        color: black;
        font-weight: 700;
        font-size: 16px;
        line-height: 22px;
      }
      .t_p {
        color: rgb(138, 148, 166);
        font-weight: 700;
      }
      i {
        font-size: 40px;
        margin-right: 4px;
      }
      p {
        font-size: 14px;
      }
      h3 {
        display: inline-block;
        vertical-align: top;
        font-size: 18px !important;
      }
      .echarts_box {
        margin-top: 10px;
        height: 170px;
      }
    }
  }
}
</style>